package com.newMedical.medicine.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.newMedical.medicine.mapper.YpListMapper;
import com.newMedical.medicine.domain.YpList;
import com.newMedical.medicine.service.IYpListService;

/**
 * 药品列表Service业务层处理
 * 
 * @author zhou
 * @date 2021-11-30
 */
@Service
public class YpListServiceImpl implements IYpListService 
{
    @Autowired
    private YpListMapper ypListMapper;

    /**
     * 查询药品列表
     * 
     * @param ypId 药品列表主键
     * @return 药品列表
     */
    @Override
    public YpList selectYpListByYpId(Long ypId)
    {
        return ypListMapper.selectYpListByYpId(ypId);
    }

    /**
     * 查询药品列表列表
     * 
     * @param ypList 药品列表
     * @return 药品列表
     */
    @Override
    public List<YpList> selectYpListList(YpList ypList)
    {
        return ypListMapper.selectYpListList(ypList);
    }

    /**
     * 新增药品列表
     * 
     * @param ypList 药品列表
     * @return 结果
     */
    @Override
    public int insertYpList(YpList ypList)
    {
        return ypListMapper.insertYpList(ypList);
    }

    /**
     * 修改药品列表
     * 
     * @param ypList 药品列表
     * @return 结果
     */
    @Override
    public int updateYpList(YpList ypList)
    {
        return ypListMapper.updateYpList(ypList);
    }

    /**
     * 批量删除药品列表
     * 
     * @param ypIds 需要删除的药品列表主键
     * @return 结果
     */
    @Override
    public int deleteYpListByYpIds(Long[] ypIds)
    {
        return ypListMapper.deleteYpListByYpIds(ypIds);
    }

    /**
     * 删除药品列表信息
     * 
     * @param ypId 药品列表主键
     * @return 结果
     */
    @Override
    public int deleteYpListByYpId(Long ypId)
    {
        return ypListMapper.deleteYpListByYpId(ypId);
    }
}
